package com.zzw.system.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzw.model.system.SysOperLog;
import com.zzw.vo.system.SysOperLogQueryVo;
import com.zzw.system.mapper.SysOperLogMapper;
import com.zzw.system.service.AsyncOperLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zzw
 * @date 2023/4/26 14:54
 */
@Service
public class AsyncOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements AsyncOperLogService{

    @Autowired
    SysOperLogMapper sysOperLogMapper;

    //    保存操作日志
    @Override
    public void saveSysLog(SysOperLog operLog) {
        baseMapper.insert(operLog);
    }
    //    获取操作日志的分页列表
    @Override
    public IPage<SysOperLog> selectPage(Page<SysOperLog> operLogPage, SysOperLogQueryVo sysOperLogQueryVo) {
        return sysOperLogMapper.selectPage(operLogPage,sysOperLogQueryVo);
    }
}
